using System.Collections;
using Sirenix.OdinInspector;
using System.Collections.Generic;
using UnityEngine;
using Pangoo.Common;
using System;

namespace MetaTable
{
    public static class MetaTableUtility
    {
#if UNITY_EDITOR
        public static MetaTableConfig GetMetaTableConfigByNamespce(string name)
        {
            var assets = AssetDatabaseUtility.FindAsset<MetaTableConfig>();
            foreach (var asset in assets)
            {
                if (asset == null || asset.Namespace.IsNullOrWhiteSpace()) continue;
                if (asset.Namespace.Equals(name))
                {
                    return asset;
                }
            }
            return null;
        }
#endif

    }
}
